package xsd.domain;

import java.util.List;

/**
 * Created by donar on 17/3/10.
 */
public class Restriction {
    String base;
    //一般都是字符串 约定长度
    Integer maxLength;
    Integer minLength;
    //当base = decimal的时候才会有下面三个值
    Integer totalDigits;
    Integer fractionDigits;
    String  minExclusive;

    //当 base = enumeration 时才会有下面的列表
    List<String> enumerationList;

    String pattern;
    public String getBase() {
        return base;
    }

    public void setBase(String base) {
        this.base = base;
    }

    public Integer getMaxLength() {
        return maxLength;
    }

    public void setMaxLength(Integer maxLength) {
        this.maxLength = maxLength;
    }

    public Integer getMinLength() {
        return minLength;
    }

    public void setMinLength(Integer minLength) {
        this.minLength = minLength;
    }

    public Integer getTotalDigits() {
        return totalDigits;
    }

    public void setTotalDigits(Integer totalDigits) {
        this.totalDigits = totalDigits;
    }

    public Integer getFractionDigits() {
        return fractionDigits;
    }

    public void setFractionDigits(Integer fractionDigits) {
        this.fractionDigits = fractionDigits;
    }

    public String getMinExclusive() {
        return minExclusive;
    }

    public void setMinExclusive(String minExclusive) {
        this.minExclusive = minExclusive;
    }

    public List<String> getEnumerationList() {
        return enumerationList;
    }

    public void setEnumerationList(List<String> enumerationList) {
        this.enumerationList = enumerationList;
    }

    public String getPattern() {
        return pattern;
    }

    public void setPattern(String pattern) {
        this.pattern = pattern;
    }


}
